<?php

    Route::group(["middleware"=>"can:post"],function(){
        // 分类列表
         Route::get("/cate/list","admin\CateController@list");
    });


    // 保存商品分类
    Route::post("/cate/store","admin\CateController@store");

    // 修改分类
    Route::post("/cate/update","admin\CateController@update");
    // 修改分类状态
    Route::post("/cate/update_state","admin\CateController@update_state");
    // 删除分类
    Route::post("/cate/delete","admin\CateController@delete");


    // 保存商品
    Route::post("/products/store","admin\ProductsController@store");
    // 商品详情
    Route::post("/products/detail","admin\ProductsController@detail");

    // 删除图片
    Route::post("/products/del_img","admin\ProductsController@del_img");

    // 更新商品
    Route::post("/products/update","admin\ProductsController@update");

    // 商品列表
    Route::post("/products/list","admin\ProductsController@list");

     // 商品列表
     Route::post("/products/state","admin\ProductsController@state");

     // 删除商品
     Route::post("/products/del","admin\ProductsController@del");

    // 创建规格
    Route::post("/sku/add","admin\ProductsController@add_sku");

    // 更新规格
    Route::post("/sku/update","admin\ProductsController@update_sku");

    // 删除规格
    Route::post("/sku/del","admin\ProductsController@del_sku");

    Route::post("/product/skus","admin\ProductsController@skus");




?>
